package com.ruoyi.business.domain;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 录制文件对象 recordfile
 * 
 * @author asher
 * @date 2021-12-20
 */
public class RecordFile implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 数据库主键 */
    private Long id;

    /** 通道唯一id */
    @Excel(name = "通道唯一id")
    private String mainid;

    /** 流媒体服务器ID */
    @Excel(name = "流媒体服务器ID")
    private String mediaserverid;

    /** 流媒体服务器IP地址 */
    @Excel(name = "流媒体服务器IP地址")
    private String mediaserverip;

    /** 通道名称 */
    @Excel(name = "通道名称")
    private String channelname;

    /** 部门代码 */
    @Excel(name = "部门代码")
    private String departmentid;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String departmentname;

    /** 上级部门代码 */
    @Excel(name = "上级部门代码")
    private String pdepartmentid;

    /** 上级部门名称 */
    @Excel(name = "上级部门名称")
    private String pdepartmentname;

    /** GB28181设备ID */
    @Excel(name = "GB28181设备ID")
    private String deviceid;

    /** GB21818设备通道ID */
    @Excel(name = "GB21818设备通道ID")
    private String channelid;

    /** 非gb28181设备的视频流源地址 */
    @Excel(name = "非gb28181设备的视频流源地址")
    private String videosrcurl;

    /** 文件的开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "文件的开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date starttime;

    /** 文件的结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "文件的结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endtime;

    /** 文件的时长 */
    @Excel(name = "文件的时长")
    private Long duration;

    /** 文件的所在位置 */
    @Excel(name = "文件的所在位置")
    private String videopath;

    /** 文件大小 */
    @Excel(name = "文件大小")
    private Long filesize;

    /** vhost */
    @Excel(name = "vhost")
    private String vhost;

    /** stream */
    @Excel(name = "stream")
    private String streamid;

    /** app */
    @Excel(name = "app")
    private String app;

    /** 文件下载与播放地址 */
    @Excel(name = "文件下载与播放地址")
    private String downloadurl;

    /** 记录日期 */
    @Excel(name = "记录日期")
    private String recorddate;

    /** 是否可撤销删除操作 */
    @Excel(name = "是否可撤销删除操作")
    private Integer undo;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer deleted;

    /** 采集项ID */
    @Excel(name = "采集项ID")
    private String collectitemid;

    @Excel(name = "创建时间")
    private Date createtime;

    @Excel(name = "更新时间")
    private Date updatetime;

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMainid(String mainid) 
    {
        this.mainid = mainid;
    }

    public String getMainid() 
    {
        return mainid;
    }
    public void setMediaserverid(String mediaserverid) 
    {
        this.mediaserverid = mediaserverid;
    }

    public String getMediaserverid() 
    {
        return mediaserverid;
    }
    public void setMediaserverip(String mediaserverip) 
    {
        this.mediaserverip = mediaserverip;
    }

    public String getMediaserverip() 
    {
        return mediaserverip;
    }
    public void setChannelname(String channelname) 
    {
        this.channelname = channelname;
    }

    public String getChannelname() 
    {
        return channelname;
    }
    public void setDepartmentid(String departmentid) 
    {
        this.departmentid = departmentid;
    }

    public String getDepartmentid() 
    {
        return departmentid;
    }
    public void setDepartmentname(String departmentname) 
    {
        this.departmentname = departmentname;
    }

    public String getDepartmentname() 
    {
        return departmentname;
    }
    public void setPdepartmentid(String pdepartmentid) 
    {
        this.pdepartmentid = pdepartmentid;
    }

    public String getPdepartmentid() 
    {
        return pdepartmentid;
    }
    public void setPdepartmentname(String pdepartmentname) 
    {
        this.pdepartmentname = pdepartmentname;
    }

    public String getPdepartmentname() 
    {
        return pdepartmentname;
    }
    public void setDeviceid(String deviceid) 
    {
        this.deviceid = deviceid;
    }

    public String getDeviceid() 
    {
        return deviceid;
    }
    public void setChannelid(String channelid) 
    {
        this.channelid = channelid;
    }

    public String getChannelid() 
    {
        return channelid;
    }
    public void setVideosrcurl(String videosrcurl) 
    {
        this.videosrcurl = videosrcurl;
    }

    public String getVideosrcurl() 
    {
        return videosrcurl;
    }
    public void setStarttime(Date starttime) 
    {
        this.starttime = starttime;
    }

    public Date getStarttime() 
    {
        return starttime;
    }
    public void setEndtime(Date endtime) 
    {
        this.endtime = endtime;
    }

    public Date getEndtime() 
    {
        return endtime;
    }
    public void setDuration(Long duration) 
    {
        this.duration = duration;
    }

    public Long getDuration() 
    {
        return duration;
    }
    public void setVideopath(String videopath) 
    {
        this.videopath = videopath;
    }

    public String getVideopath() 
    {
        return videopath;
    }
    public void setFilesize(Long filesize) 
    {
        this.filesize = filesize;
    }

    public Long getFilesize() 
    {
        return filesize;
    }
    public void setVhost(String vhost) 
    {
        this.vhost = vhost;
    }

    public String getVhost() 
    {
        return vhost;
    }
    public void setStreamid(String streamid) 
    {
        this.streamid = streamid;
    }

    public String getStreamid() 
    {
        return streamid;
    }
    public void setApp(String app) 
    {
        this.app = app;
    }

    public String getApp() 
    {
        return app;
    }
    public void setDownloadurl(String downloadurl) 
    {
        this.downloadurl = downloadurl;
    }

    public String getDownloadurl() 
    {
        return downloadurl;
    }
    public void setRecorddate(String recorddate) 
    {
        this.recorddate = recorddate;
    }

    public String getRecorddate() 
    {
        return recorddate;
    }
    public void setUndo(Integer undo) 
    {
        this.undo = undo;
    }

    public Integer getUndo() 
    {
        return undo;
    }
    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }
    public void setCollectitemid(String collectitemid) 
    {
        this.collectitemid = collectitemid;
    }

    public String getCollectitemid() 
    {
        return collectitemid;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mainid", getMainid())
            .append("mediaserverid", getMediaserverid())
            .append("mediaserverip", getMediaserverip())
            .append("channelname", getChannelname())
            .append("departmentid", getDepartmentid())
            .append("departmentname", getDepartmentname())
            .append("pdepartmentid", getPdepartmentid())
            .append("pdepartmentname", getPdepartmentname())
            .append("deviceid", getDeviceid())
            .append("channelid", getChannelid())
            .append("videosrcurl", getVideosrcurl())
            .append("starttime", getStarttime())
            .append("endtime", getEndtime())
            .append("duration", getDuration())
            .append("videopath", getVideopath())
            .append("filesize", getFilesize())
            .append("vhost", getVhost())
            .append("streamid", getStreamid())
            .append("app", getApp())
            .append("downloadurl", getDownloadurl())
            .append("recorddate", getRecorddate())
            .append("undo", getUndo())
            .append("deleted", getDeleted())
            .append("collectitemid", getCollectitemid())
            .toString();
    }
}
